package com.lyf.design.learn.designmodel.state.v2;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/5
 * @VERSION 1.0
 * @DESC
 */
public class Person {
    private String name;
    //private enum State{HAPPY,SAD}
    PersonState personState;

    public Person(String name, PersonState personState) {
        this.name = name;
        this.personState = personState;
    }

    void exam(){
        personState.exam();
    }
}
